Others
Interfaces
-
Zig doesn't have nice syntactic sugar for creating interfaces.
-
One pattern for interface-like behavior are tagged unions, though that's relatively constrained compared to true interfaces.
-
Other patterns have emerged and are used throughout the standard library, such as with
std.mem.Allocator.